]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Return from overview when tapping on an empty workspace
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 16 Oct 2015 16:00:01 +0000 (18:00 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 4 Dec 2015 10:50:12 +0000 (11:50 +0100)
This works for pointers and touch on X11, there is however no pointer
emulation on evdev, so touch triggers ::clicked with button==0 which
is ignored.

https://bugzilla.gnome.org/show_bug.cgi?id=756748

js/ui/workspacesView.js

index e2b585da4c069d003aa35a7822039646b4ace312..e0c9249c7e9c2075a43748aa227db13886008865 100644 (file)
@@ -421,7 +421,7 @@ const WorkspacesDisplay = new Lang.Class({
             // Only switch to the workspace when there's no application
             // windows open. The problem is that it's too easy to miss
             // an app window and get the wrong one focused.
-            if (action.get_button() == 1 &&
+            if ((action.get_button() == 1 || action.get_button() == 0) &&
                 this._getPrimaryView().getActiveWorkspace().isEmpty())
                 Main.overview.hide();
         }));